package vista;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;


public class VentanaDatosClinica extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					VentanaDatosClinica frame = new VentanaDatosClinica();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public VentanaDatosClinica() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 350, 200);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblIngreseCodigoDe = new JLabel("Ingrese Codigo de Clinica:");
		lblIngreseCodigoDe.setBounds(10, 11, 149, 14);
		contentPane.add(lblIngreseCodigoDe);
		
		textField = new JTextField();
		textField.setBounds(119, 55, 86, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JButton btnListo = new JButton("Listo");
		btnListo.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent e) {
				VentanaClinica obj=new VentanaClinica();
				obj.setVisible(true);
				dispose();
			}
		});
		btnListo.setBounds(22, 107, 89, 23);
		contentPane.add(btnListo);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent e) {
				VentanaPrincipal2 obj=new VentanaPrincipal2();
				obj.setVisible(true);
				dispose();
			}
		});
		btnCancelar.setBounds(212, 107, 89, 23);
		contentPane.add(btnCancelar);
	}
}
